package com.chentongwei.core.system.biz;

import com.chentongwei.common.creator.ResultCreator;
import com.chentongwei.common.entity.Result;
import com.chentongwei.core.system.dao.ISysLogDAO;
import com.chentongwei.facade.system.entity.io.SysLogIO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 系统日志业务接口实现
 *
 * @author TongWei.Chen 2017-9-22 09:49:22
 */
@Service
public class SysLogBiz {

    @Autowired
    private ISysLogDAO sysLogDAO;

    /**
     * 保存日志
     * @param sysLogIO
     * @return
     */
    public Result save(SysLogIO sysLogIO) {
        sysLogDAO.save(sysLogIO);
        return ResultCreator.getSuccess();
    }
}
